//
//  KShiDetailTableCell3.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/7.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "KShiDetailTableCell3.h"
#define FontSize [[FontSizeSingleTon shareFontSize]array]
#import "FitHeader.h"
#import "FontSizeSingleTon.h"
@implementation KShiDetailTableCell3
-(void)setModel:(KVegetableDetailModel *)model
{
    if (_model != model) {
        _model = model;
    }
    _label.text = model.effect;
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _label = [[UILabel alloc]init];
        _label.numberOfLines = 0;
       _label.font = [UIFont systemFontOfSize:11];
        [self.contentView addSubview:_label];
    }
    return self;
}
-(void)setLableText:(NSString *)lableText
{
    NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont systemFontOfSize:11],NSFontAttributeName, nil];
    CGRect rect = [lableText boundingRectWithSize:CGSizeMake(335 * wt, CGFLOAT_MAX) options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
    _label.text = lableText;
    _label.frame = CGRectMake(20 * wt, 0, (375 - 40) * wt, rect.size.height);
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
